package modifiers;

import java.util.HashMap;

import utilities.Key;

public class ViewModifier {
	
	private String name;
	private Key target;
//	private String targetType; //i.e. StarNear, StarFar, etc.  See Graphics List.xlsx
	
	//String1 = target component, from GraphicsList.xlsx
	/*
	 * String2 = name of asset to load for the modified view of target component.
	 * These assets must have already been loaded into AssetPortal.  Cannot load from file.
	 * Must develop list of all assets that go into ViewModifiers.
	 */
	private HashMap<String, String> changeMap = new HashMap<String, String>();
	
//	private String targetComponent; //See Graphics List.xlsx
//	private String fileName; //file to load for modified view
	
	public ViewModifier(String name) {
		this.name = name;
	}
	
	public void setTarget(Key targetKey) {
		this.target = targetKey;
	}
	public Key getTarget() {
		return this.target;
	}
	
	public String getName() {
		return name;
	}
	
	public String getChange(String targetComponent) {
		return changeMap.get(targetComponent);
	}
	public HashMap<String, String> getChanges() {
		return changeMap;
	}
	public void setChange(String targetComponent, String fileName) {
		this.changeMap.put(targetComponent, fileName);
		//this.targetComponent = targetComponent;
	}
	public void setChanges(HashMap<String, String> changes) {
		this.changeMap.clear();
		this.changeMap.putAll(changes);
	}
	
//	public String getFileName() {
//		return fileName;
//	}
//	public void setFileName(String fileName) {
//		this.fileName = fileName;
//	}	
	
//	
//	public String getTargetType() {
//		return targetType;
//	}
//	public void setTargetType(String targetType) {
//		this.targetType = targetType;
//	}

}
